package com.mysoft.gfyx.marketdevelop.controller;

import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.controller.dto.GetDetailDataRequestDto;
import com.mysoft.gfyx.marketdevelop.service.DeveloperService;
import com.mysoft.gfyx.marketdevelop.service.DeveloperCommencePermitService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;

@PubService(value = "/commencePermitApi", prefix = RequestPrefix.API)
@Tag(name = "开工数据-API")
public class CommencePermitDataApiController {

    @Autowired
    private DeveloperService developerService;

    @Autowired
    private DeveloperCommencePermitService developerCommencePermitService;

    @PubAction(value = "/detail", method = RequestMethod.POST)
    public Object commencePermitDetail(@RequestBody GetDetailDataRequestDto dto) {
        return developerCommencePermitService.getCommencePermitDetail(dto);
    }
}
